﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VarBokning.aspx.cs" Inherits="StockholmsStad.Web.UI.VarBokning.VarBokning"
    MasterPageFile="~/templates/Site.Master" %>

<%@ Register Src="~/Controls/BookingSummary.ascx" TagName="bookingSummary" TagPrefix="StockholmsStad" %>
<asp:Content ContentPlaceHolderID="mainContentPlaceHolder" ID="contentRegistrering"
    runat="server">
    <div id="content">
            
            <fieldset>
                <legend>
                    <asp:Label ID="lblLegend" runat="server" Font-Bold="true" style="color:#02639C;" Text="Vår bokning" />
                </legend>
                
                <div style="width:24em; float:left;">
                <StockholmsStad:bookingSummary runat="server" ID="bookingSummary" />
                </div>
                <div class="booking-questions">
                    För mer information se fliken
                    <asp:HyperLink ID="HyperLink1" runat="server" Text="Frågor och svar »" NavigateUrl="~/FragorOchSvar.aspx" />
                    och
                    <br />
                    <asp:HyperLink ID="HyperLink2" runat="server" Text="Vad händer sedan »" NavigateUrl="~/VadHanderSen.aspx" />
                </div>
                    <div class="right panel-buttons">
                      <!--<asp:Panel ID="pnlButtons" runat="Server" class="panel-buttons" DefaultButton="btnChangeBooking">-->
                        <asp:Button CssClass="button" ID="btnCancelBooking" runat="server" Text="Avboka"
                            CausesValidation="False" OnClick="btnCancelBooking_Click" ToolTip="Avboka både bokning och önskemål" />
                        <asp:Button CssClass="button" ID="btnChangeBooking" runat="server" Text="Ändra" CausesValidation="False"
                            OnClick="btnChangeBooking_Click" />
                      <!--</asp:Panel>-->
                    </div>
                <asp:Label ID="lblHistory" runat="server" Font-Bold="true" Text="Händelser"></asp:Label><br />
                <br />
                <div class="div_listbox_scrollbar">
                    <table>
                        <tr>
                            <th class="datecolumn">Datum</th>
                            <th>&nbsp;</th>
                            <th class="modifiedusercolumn">Användare</th>
                            <th>&nbsp;</th>
                            <th class="informationcolumn">Information</th>
                        </tr>
                
                        <asp:Repeater ID="repHistory" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td class="datecolumn"><%# String.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "DateTime")) %></td>
                                        <td></td>
                                        <td class="modifiedusercolumn"><%# DataBinder.Eval(Container.DataItem, "ModifiedByUser") %></td>
                                        <td></td>
                                        <td class="informationcolumn"><%# DataBinder.Eval(Container.DataItem, "Information") %></td>
                                    </tr>
                                </ItemTemplate>
                        </asp:Repeater>

                    </table>

                </div>
            </fieldset>
    </div>
</asp:Content>
